<?php echo form_open('admin/help/form/'.$id); ?>

			<fieldset>
				<label for="module">Module</label>
				<?php
				$data	= array(
					'dang_ky' 			=> 'Đăng ký',
					'page'				=>	'Page',
					'thanh_toan'		=>	'Thanh toán',
					'tuyen_dung'		=>	'Tuyển dụng'
				);
				echo form_dropdown('module', $data, $module);
				?>
				<label for="title">Tiêu đề</label>
				<?php
				$data	= array('name'=>'title', 'value'=>set_value('title', $title), 'class'=>'span6');
				echo form_input($data);
				?>
				<label for="slug">Slug</label>
				<?php
				$data	= array('name'=>'slug', 'value'=>set_value('slug', $slug), 'class'=>'span6');
				echo form_input($data);
				?>
				<label for="content">Nội dung</label>
				<?php
				$data	= array('id' => 'content','name'=>'content', 'class'=>'editor', 'value'=>set_value('content', $content));
				echo form_textarea($data);
				?>
				<script type="text/javascript">
					jQuery(function(){
						// jQuery( 'textarea.ckeditor' ).ckeditor();
						CKEDITOR.replace( 'content', {
							filebrowserBrowseUrl: '/browser/browse.php',
							filebrowserUploadUrl: '/uploader/upload.php'
						});
						
					});
				</script>
				<label for="seo_title">Seo title</label>
				<?php
				$data	= array('name'=>'seo_title', 'value'=>set_value('seo_title', $seo_title), 'class'=>'span6');
				echo form_input($data);
				?>
			
				<label for="meta">Meta</label>
				<?php
				$data	= array('rows'=>'3', 'id' => "meta",'name'=>'meta', 'value'=>set_value('meta', html_entity_decode($meta)), 'class'=>'span12');
				echo form_textarea($data);
				?>
				
				<p class="help-block">Vd: &lt;meta name="description" content="We sell products that help you" /&gt;</p>				
			
				<label for="sequence">Thứ tự</label>
				<?php
				$data	= array('name'=>'sequence', 'value'=>set_value('sequence', $sequence), 'class'=>'span1');
				echo form_input($data);
				?>
				<label for="sequence">Trạng thái</label>
				<?php
					$data	= array('1'=>'Enabled','0'=>'Disabled');
					echo form_dropdown('trang_thai', $data, isset($trang_thai)?$trang_thai:'1');
				?>
				
			</fieldset>

<div class="form-actions">
	<button type="submit" class="btn btn-primary">Cập nhật</button>
</div>	
</form>